import request from '@/utils/request'

// 查询对象存储列表
export function listSysOssFile (query) {
  return request({
    url: '/system/oss/page',
    method: 'get',
    params: query
  })
}

// 查询对象存储详细
export function getSysOssFile (id) {
  return request({
    url: '/system/oss/' + id,
    method: 'get'
  })
}

// 新增对象存储
export function addSysOssFile (data) {
  return request({
    url: '/system/oss',
    method: 'post',
    data: data
  })
}

// 修改对象存储
export function updateSysOssFile (data) {
  return request({
    url: '/system/oss',
    method: 'put',
    data: data
  })
}

// 删除对象存储
export function delSysOssFile (id) {
  return request({
    url: '/system/oss/' + id,
    method: 'delete'
  })
}


// 导出对象存储
export function exportSysOssFile (query) {
  return request({
    url: '/system/oss/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/system/oss/getInitData/' + dictTypes,
    method: 'get'
  })
}
